package com.yourwork.common.jpa;

import java.util.List;

import javax.persistence.Table;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.yourwork.model.ServiceProject;

@Repository
@Table(name="ServiceItem")
@Qualifier(value="serviceItemRepositoey")
public interface ServiceProjectRepositoey extends JpaRepository<ServiceProject, Integer> {
	//根据id查询返回对应记录
	public ServiceProject findById(int id);
	//查询在用的服务
	public List<ServiceProject> findByStatus(boolean Status);
	//分页查询
	public List<ServiceProject> findByStatus(boolean status, Pageable pageable);

}
